home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_02
/
2n02047b
< prev
next >
Wrap
Text File
|
1990-12-29
|
669b
|
24 lines
#include <dos.h>
#include "netbios.h"
extern int net_error;
/**********************************************************
* int_netbios - interrupt NetBIOS with net control block
* Parameters: ncb (in/out) - initialized net control block
* Global:
* _ES - ES register
* _BX - BX register
* net_error - set to command return code
* History: Original code by William H. Roetzheim
***********************************************************/
void int_netbios(struct net_control_block *ncb)
{
_ES = FP_SEG(ncb);
_BX = FP_OFF(ncb);
geninterrupt(0x5C);
net_error = ncb->retcode;
}